From: Florian Müllner Date: Thu, 12 Mar 2026 10:32:40 +0000 (+0100) Subject: boxpointer: Properly update arrow side when requested X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ebdb6b8bcffea72005e5e959d7625aef37b4fa55;p=gnome-shell.git boxpointer: Properly update arrow side when requested Boxpointer tracks both the "user arrow side", which is the side that was explicitly specified, and the "arrow side", which is the actual side that may have been flipped due to space constraints. However the former currently always keeps tracking the side that was specified at construction time, even if it is explicitly changed with `updateArrowSide()`. That means that on allocation, the arrow side is reverted to its original value again, unless the flip calculation happens to turn it into the intended value. This is unexpected, so update both current and intended arrow side when updating the arrow side. Part-of: --- diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 11aa20059..7d63016e5 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -666,7 +666,7 @@ export const BoxPointer = GObject.registerClass({ } updateArrowSide(side) { - this._arrowSide = side; + this._arrowSide = this._userArrowSide = side; this.queue_relayout(); this.emit('arrow-side-changed');